home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 #33 / q33side1.d64 / t.food calc < prev    next >
Encoding:
Text File  |  1992-01-01  |  13.0 KB  |  280 lines

  1.  
  2.  
  3.                          F O O D    C A L C   ' 9 7
  4.  
  5.                       Program and Text by Mark Jordan
  6.  
  7.  
  8.  FENDER'S PREMUMBLE: This nutrition program was published on LS 128 #7 way
  9. back in the Stone Age when we only had one drive, and it was drive 8. I've
  10. gone through it and changed it so it will now work on whatever drive you
  11. boot it up on. You can't change drives after running the program but if you
  12. put all of the files associated with this program in a subdirectory or
  13. partition on a 1581 disk, RAMLink or HD, it will work fine. The program has
  14. been compiled for speed and is easy to use.
  15.  
  16.  The list of foods and their caloric and cholesterol contents is the same
  17. one that Mark Jordan provided before. It has some blanks in it where Mark
  18. didn't know the numbers, but it's very easy to update it with more modern
  19. figures. Here's Mark to tell you all about it.
  20.  
  21.  
  22.     FOOD CALC is an intuitive program that helps users keep track of
  23. calories and cholesterol. What makes it so easy to use is the fact that you
  24. need never do any typing of information -- with FOOD CALC you simply use
  25. the CRSR keys and RETURN to make virtually everything happen. Even the date
  26. is entered via the CRSR keys and RETURN.
  27.  
  28.     The program comes to you with a 284-item food list which includes
  29. calorie and cholesterol info as well as serving sizes and other pertinent
  30. data. Most every food you eat is on this list including 35 popular fast
  31. foods (like Big Macs, Tostadas, and Kentucky Fried Chicken). These 284
  32. items may very well be all you'll ever need to use.
  33.  
  34.     However, if there are some food items you regularly eat that aren't on
  35. the list, it's easy to add them. In fact, you can have up to 1000 total
  36. food items.
  37.  
  38.     In case you're wondering what types of foods might not have made the
  39. list, tofu is one. But if you're still into bell-bottoms and communal
  40. living, hey -- go for it. You'll simply need to find a good nutrional book
  41. that includes such esoteric treats as tofu. Try looking under H (for
  42. hippie) in the library.
  43.  
  44.  FENDER'S NOTE: When I was a free spirit in the 60s, I considered the
  45. hippie ethic to be "if it feels good, do it". It felt good to eat
  46. enchiladas, tacos, Mongolian beef and hot fudge sundaes. I don't think it
  47. would have felt good to eat tofu. Still don't.
  48.  
  49.     When you first run FOOD CALC you'll discover an 80-column screen full
  50. of colorful windows, six of them to be exact. Four of them look like index
  51. cards, three stacked vertically on the right side of the screen labelled
  52. Breakfast, Lunch, and Supper, and one on the bottom left labelled Food
  53. Data.
  54.  
  55.     In the center of the screen is a tall, thin window with sixteen food
  56. items listed -- the Foods window. And the last one is on the upper-left:
  57. this is your Main Menu window.
  58.  
  59.     There are nine main menu choices, though there are really only three
  60. modes of operation. Mode One is inputting today's diet; Mode Two is
  61. altering the food list (you may never need to use this mode); and Mode
  62. Three is everything else. The nine options are as follows:
  63.  
  64.  1 -- Enter Today's Diet (Mode One)
  65.  2 -- Input/Edit Food Data (Mode Two)
  66.  3 -- Print Diet Info (beginning of Mode Three)
  67.  4 -- Clear Entries from screen
  68.  5 -- Change Printer Info
  69.  6 -- Change Date
  70.  7 -- Load Previously Saved Data
  71.  8 -- Delete Present Entry
  72.  9 -- Quit to LOADSTAR
  73.  
  74.     The first thing you need to do is set today's date. Use the CRSR
  75. UP/DOWN keys to flip through the months, and press RETURN on the right one.
  76. Then do the same for the date and year.
  77.  
  78.  
  79.  MODE ONE
  80.  {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  81.  
  82.     Option 1 is the first you'll likely use. Let's say it's midnight, and
  83. you've just settled down to do some serious calorie-checking. Press 1 to
  84. get into the input mode.
  85.  
  86.     The middle food list window becomes active, its top food item (Alfalfa)
  87. is highlighted. Another window gets activated when you enter this mode:
  88. the Breakfast "index card." The word "Breakfast" on the tab flashes, and a
  89. third window, the Food Data window also gets busy... five lines of
  90. information about Alfalfa is displayed.
  91.  
  92.     Obviously, the goal of this mode is to select the food items from the
  93. center menu and enter them onto the Breakfast menu. Since the center menu
  94. is a scrolling window of our 284 items of food, we need to find our food
  95. item first.
  96.  
  97.     The simplest and slowest way to do that is to press CRSR DOWN until it
  98. shows up. A faster way is to press the plus (+) key and watch the window
  99. cycle through the food list a screenful (16) items at a time. An even
  100. faster way is to simply press the first letter of the food you're looking
  101. for and wait for the first food with that alphabetical designation to show
  102. up, then use the CRSR DOWN and/or plus key to home in on it.
  103.  
  104.     Get it?  You will when you try it once. And don't worry about
  105. remembering all this: the main menu changes when you enter this mode and
  106. offers help. Besides the CRSR DOWN and plus keys for aid, you may also use
  107. the CRSR UP key (naturally), the minus key (to go back a screen at a time),
  108. the HOME key to go to the top of the window/list, and the British pound key
  109. (\) to go to the bottom of the window/list. With these conveniences it
  110. shouldn't take you more than a second or two to find and select any food on
  111. the list.
  112.  
  113.     To select the item, just press RETURN when you've got it highlighted.
  114. At this point, that food will appear on the first line of your Breakfast
  115. menu with a quantity of one unit and the calories that equals. Of course,
  116. you may have eaten more or less than exactly one unit -- you'll need a way
  117. to adjust. And what's this unit business anyway?
  118.  
  119.     The unit is, in most cases, the standard serving. You'll find what unit
  120. is used on the Food Data card. For instance, if you select Eggs, you'll
  121. discover the unit is one...one egg. The unit for milk is ounces, the unit
  122. for pizza is one 1/8 piece of a 15 inch pizza.
  123.  
  124.     You must adjust these units to as close to what you actually ate as
  125. possible. If you selected "Eggs, scrambled" you might not know if you ate
  126. one, one and a half, two, or what. FOOD CALC can't help you here.
  127.  
  128.     Do your best to estimate. (And no lying, you understand?)  Once you've
  129. determined the amount, use the CRSR UP/DOWN and CRSR LEFT/RIGHT keys to
  130. adjust. The UP/DOWN keys adjust a tenth of a unit at a time. The LEFT/RIGHT
  131. keys adjust one unit at a time. You'll get used to this quickly and, I
  132. believe, find it a nifty way to do things.
  133.  
  134.     Once you've adjusted the quantity of your Eggs, press the ENTER key on
  135. the numeric keypad. This will force you to lift your hand from the home
  136. keys. An oversight, this annoyance? Nope. I purposefully elected to force
  137. you to use the ENTER key (rather than RETURN) because the RETURN key is
  138. used to select food from the center list and it gets confusing to use the
  139. same key to do two different and important things.
  140.  
  141.     After pressing ENTER, you may now add any other foods you had for
  142. breakfast. There is a limit to how many foods you can list: six. If, in the
  143. unlikely event you ate more than six different items for breakfast, one
  144. option would be to simply carry over extra items to the lunch menu.
  145.  
  146.  FT'S NOTE: Judi, my wonderful wife who knows more about preparing meals
  147. than I ever will, suggests that if you cook casseroles, goulashes or
  148. "leftover surprises" that contain several items, figure out the total
  149. caloric and cholesterol content of a helping and enter that as a new item
  150. on the list. This way you can get around the six-only restriction of the
  151. program.
  152.  
  153.     How do you get to the lunch menu? You must press the equal sign (=).
  154. This tells FOOD CALC you're done inputting foods for whatever meal you are
  155. on. Lunch and Supper are pretty much the same as Breakfast so that's enough
  156. on all that.
  157.  
  158.     Immediately after you press the last equal sign (after the Supper list
  159. is complete) your data will be saved. Data is saved according to the month
  160. you have entered. You'll find it on disk with a "d." prefix to help
  161. separate it from other programs and files.
  162.  
  163.     It is highly advisable to enter your day's eatings in chronological
  164. order because there is no way to rearrange them short of deleting daily
  165. entries, a laborious task.
  166.  
  167.  
  168.  PRINTING
  169.  {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  170.  
  171.     When the saving is done, you're back at the Main Menu with its eight
  172. options. Let's break with tradition and jump directly to the third one
  173. (we'll cover number two later) since that's the one you'll undoubtedly want
  174. to go to next on your maiden voyage with FOOD CALC.
  175.  
  176.     This option is the Printing option. A print menu will appear with 4
  177. sub-options:  you can print the whole year's data, the present month's, the
  178. present day's, or a monthly tally chart.
  179.  
  180.     You may print to the printer or to the screen. Just follow prompts. You
  181. can control the style of printout by entering the Printer Info option (#5)
  182. on the main menu. That will also be covered shortly.
  183.  
  184.     The printouts show you pretty much the same info the screen does: the
  185. three meals, their caloric and cholesterol contents item by item with meal
  186. and daily tallies on each. The charting option allows you to see your
  187. calorie/cholesterol intake in a graph form with an average of each for the
  188. month.
  189.  
  190.  
  191.  MODE TWO
  192.  {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  193.  
  194.     Okay, now let's head back north and cover that second main menu option
  195. which is also the second main Mode of operation: altering the food list.
  196. This is a logical place to put this anyway because at this point you may
  197. realize that there is a food item or two missing from the existing list
  198. that you really need...say, tofu.
  199.  
  200.     Press 2 and you've just made the center list of food active again.
  201. Press the British pound key (\) once and your cursor will jump to the
  202. bottom of the window. Press it again and you'll be transported to the
  203. bottom of the entire list.
  204.  
  205.     Your cursor will be sitting on a blank line, just the spot you need to
  206. add an item. Press RETURN. Now enter the information for your food item
  207. line by line. Your typing will appear on the lower-left index card.
  208. Conclude each line with a RETURN. After you've typed the last one, you'll
  209. be back on the center menu... after a short pause. The pause is due to the
  210. computer realphabetizing your entire food list.
  211.  
  212.     You can edit any item on the list (you may find my original unit sizes
  213. inconvenient, for instance) by simply going to the item, pressing RETURN,
  214. and typing.
  215.  
  216.     Use the DELete key to get rid of unwanted characters. To save your
  217. added or edited items, press the BACK ARROW.
  218.  
  219.     The food-item mode of operation has several other features to make your
  220. life easier. If you happen to edit an existing food item and change its
  221. name you might need to re-sort the list. For instance, the list as it
  222. stands now includes Cola as an item. Easterners might prefer to call it
  223. Soda, Midwesterners Pop, Southerners sasparilla, and some individuals might
  224. simply want to use the brand names such as Coke, Pepsi, etc.
  225.  
  226.     Go ahead and make the change, then press UP ARROW to re-sort the list
  227. before re-saving it. A word of warning: with 284 items, re-sorting is a
  228. fairly slow process, even with a compiled program.
  229.  
  230.     You also have the option of deleting any food item from the list. You
  231. don't drink? Then get Beer off that list -- no sense tempting yourself. Use
  232. the asterisk (*) and answer Yes to the followup prompt (press Y).
  233.  
  234.     That's about it for Mode Two. The rest of the Main Menu features are
  235. fairly straightforward. Press 4 to clear the index cards on the screen.
  236. Press 5 to install (or change) the printer commands to suit your printer.
  237.  
  238.  
  239.  PRINTER SETUP
  240.  {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  241.  
  242.     A word of explanation here: the first time you run the program you'll
  243. be asked if you want to include special printer functions. The special
  244. functions are the ability to underline, use a font of your choice, and set
  245. a left margin of your choice. If you don't understand printer codes, skip
  246. this (press N at the prompt). Or get your printer manual and give it a try:
  247. the worst you can do is get goofy results. You can always try again.
  248.  
  249.     As always, simply follow the prompts. The first will ask you for
  250. underline commands. My Star printer requires the following CHR$ values to
  251. invoke underline:  27  45  1. So I type 27 [RETURN], 45 [RETURN], and 1
  252. [RETURN]. Then, to tell the computer that's it, I press RETURN on a blank
  253. line. As I said, the worst you can do is have to start over. Try it.
  254.  
  255.  FENDER'S NOTE: The default printer file on the LOADSTAR 128 disk is for my
  256. Star NX-2410 Epson-emulating printer. For underline, I have 27,45,49 and to
  257. stop underline it's 27,45,48.
  258.  
  259.     You may find that the printer must be on in order to alter the printer
  260. codes. Keep this in mind.
  261.  
  262.     Press 6 to change the current date. You'll want to do this if you are
  263. inputting several days' data at once. Press 7 to look at a previously-saved
  264. day's eating activities. And press 8 to delete the current date's data on
  265. the disk.
  266.  
  267.     All of this is prompt-driven and self-explanatory. Mosey through the
  268. features for a few minutes and you'll feel comfortable.
  269.  
  270.     FOOD CALC was designed for one specific person -- me -- with one
  271. specific goal -- to lose weight. Has it worked? Nah. But it has been fun
  272. seeing how many calories I consume daily and how much cholesterol I ingest.
  273. I make no claims that typing in food data will turn you into Joe Svelte or
  274. Josephine Sveltine.
  275.  
  276.     But it might.
  277.  
  278.               \\\\\ R - Run   RETURN - Menu \\\\\
  279.  
  280.